#ifndef _HW_DEF_H_
#define _HW_DEF_H_

#include "cpuport.h"

#define RTOS_SYS_TICK_PERIOD                     5UL

#define HEAP_END_ADDR                            0x2000ffffUL

#define ALIGN_SIZE                               4

#define interrupt_enable                         __arch_interrupt_enable
#define interrupt_disable                        __arch_interrupt_disable

#define interrupt_suspend                        __arch_interrupt_suspend
#define interrupt_recover                        __arch_interrupt_recover

#define context_switch                           __arch_context_switch
#define context_switch_to                        __arch_context_switch_to

#define spin_lock                                __arch_spin_lock
#define spin_trylock                             __arch_spin_trylock
#define spin_unlock                              __arch_spin_unlock

#define atomic_add                               __arch_atomic_add 
#define atomic_sub                               __arch_atomic_sub 

#endif
